import 'package:flutter/cupertino.dart';
import 'package:flutter_mmvm_provider/model/joke_model.dart';
class JokeViewModel with ChangeNotifier{
    /// 将请求的列表保存起来
    List<Joke> _jokelist = [];

    late Joke _joke;

    bool loading = true;
    getJokeList(List<Joke> list){
      _jokelist = [];
      _jokelist = list;
      loading = false;
      notifyListeners();
    }

    List<Joke> get jokelist =>_jokelist;

    Joke get joke =>_joke;

}